
function showHintMaCB(str) {
    if (str.length === 0) {
        document.getElementById("txtHintMaCB").innerHTML = "";
        return;
    } else {
        var xmlhttp = new XMLHttpRequest();
        xmlhttp.onreadystatechange = function() {
            if (xmlhttp.readyState === 4 && xmlhttp.status === 200) {
                document.getElementById("txtHintMaCB").innerHTML = xmlhttp.responseText;
            }
        }
        xmlhttp.open("GET", "Searchlive_macbCB.jsp?q=" + str, true);
        xmlhttp.send();
    }
}

function showHintTenKH(str) {
    if (str.length === 0) {
        document.getElementById("txtHintTenKH").innerHTML = "";
        return;
    } else {
        var xmlhttp = new XMLHttpRequest();
        xmlhttp.onreadystatechange = function() {
            if (xmlhttp.readyState === 4 && xmlhttp.status === 200) {
                document.getElementById("txtHintTenKH").innerHTML = xmlhttp.responseText;
            }
        }
        xmlhttp.open("GET", "Searchlive_hotenKH.jsp?q=" + str, true);
        xmlhttp.send();
    }
}

function showHintTaiKhoanNV(str) {
    if (str.length === 0) {
        document.getElementById("txtHintTaiKhoanNV").innerHTML = "";
        return;
    } else {
        var xmlhttp = new XMLHttpRequest();
        xmlhttp.onreadystatechange = function() {
            if (xmlhttp.readyState === 4 && xmlhttp.status === 200) {
                document.getElementById("txtHintTaiKhoanNV").innerHTML = xmlhttp.responseText;
            }
        }
        xmlhttp.open("GET", "Searchlive_taikhoanNV.jsp?q=" + str, true);
        xmlhttp.send();
    }
}

function showHintMaVe(str) {
    if (str.length === 0) {
        document.getElementById("txtHintMaVe").innerHTML = "";
        return;
    } else {
        var xmlhttp = new XMLHttpRequest();
        xmlhttp.onreadystatechange = function() {
            if (xmlhttp.readyState === 4 && xmlhttp.status === 200) {
                document.getElementById("txtHintMaVe").innerHTML = xmlhttp.responseText;
            }
        }
        xmlhttp.open("GET", "Searchlive_maveVe.jsp?q=" + str, true);
        xmlhttp.send();
    }
}